package com.fy.springmvc.controller;

import com.fy.springmvc.enetity.User;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ajax/")
public class AjaxController {
    @RequestMapping("t1.do")
    public User t1( @RequestBody User user ){
        System.err.println(user);
        return user;
    }
}
